QuickOPC User's Guide and Reference
EnumerationDataType Constructor(String,String,Int32,IEnumerable<EnumerationMember>)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > EnumerationDataType Class > EnumerationDataType Constructor : EnumerationDataType Constructor(String,String,Int32,IEnumerable<EnumerationMember>)
The short descriptive name of the data type.
The full name of the data type.
How many bits the enumeration value can occupy. Equals to -1 when unknown.
Describes possible enumeration values.
Initializes a new instance of the class. Initializes a new instance of the class with given name, full name, size in bits, and enumeration members.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal fullName As String, _
   ByVal sizeInBits As Integer, _
   ByVal enumerationMembers As IEnumerable(Of EnumerationMember) _
)
'Usage
 
Dim name As String
Dim fullName As String
Dim sizeInBits As Integer
Dim enumerationMembers As IEnumerable(Of EnumerationMember)
 
Dim instance As New EnumerationDataType(name, fullName, sizeInBits, enumerationMembers)

Parameters

name
The short descriptive name of the data type.
fullName
The full name of the data type.
sizeInBits
How many bits the enumeration value can occupy. Equals to -1 when unknown.
enumerationMembers
Describes possible enumeration values.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also